import { App } from "vue";
import { createRouter, createWebHashHistory } from "vue-router";
import { staticRoutes as routes } from "./util";

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export function setupRouter(app: App) {
  app.use(router);
}

export default router;
